﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;

using System.Drawing;
using System.Linq;
using System.Text;
//using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class MyDialog : Form
    {
        public MyDialog()
        {

            InitializeComponent();
        }
        public MyDialog(string text, bool B1V, bool B2V)
        //ok 表示第一个button是否可见
        {

            InitializeComponent();
            this.text.Text = text;
            ok.Enabled = B1V;
            cancal.Enabled = B2V;
           
        }
        private void ok_Click(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void cancal_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
